/**
 * 
 */
package net.jadoth.sqlengine.internal;

import net.jadoth.sqlengine.SQL;
import net.jadoth.sqlengine.dbms.DbmsDMLAssembler;

/**
 * @author Thomas Muenz
 *
 */
public class DISTINCT extends SqlExpression
{
	///////////////////////////////////////////////////////////////////////////
	// constants        //
	/////////////////////
	/**
	 * 
	 */
	private static final long serialVersionUID = 2338538827171762740L;
	
	
	
	///////////////////////////////////////////////////////////////////////////
	// constructors //
	/////////////////
	/**
	 * @param expression
	 */
	public DISTINCT(final Object expression)
	{
		super(expression);
	}

	
	
	///////////////////////////////////////////////////////////////////////////
	// override methods //
	/////////////////////
	/**
	 * 
	 */
	@Override
	protected StringBuilder assemble(
		final DbmsDMLAssembler<?> dmlAssembler, final StringBuilder sb, final int indentLevel, final int flags
	)
	{
		sb.append(SQL.LANG.DISTINCT).append(' ');
		return super.assemble(dmlAssembler, sb, indentLevel, flags);
	}
	
}
